<dl class="widget">
	<dt>Другие вакансии</dt>
	<dd>    
		<ul class="other-positions">
			<?php foreach ($otherVacancies as $otherVacancy): ?>
				<li>
					<a href="/<?php echo $otherVacancy['pageUrl']; ?>"><?php echo $this->mbMyUcfirst(mb_strtolower($otherVacancy['pageTitle'], 'utf-8')); ?></a>
				</li>
			<?php endforeach; ?>
		</ul>
	</dd>
</dl>
<div class="global-form">
	<h3>Отправить резюме</h3>
	<?php
	$form = $this->beginWidget('CActiveForm', array(
		'id' => 'vacancy-form',
		'htmlOptions' => array('enctype' => 'multipart/form-data'),
		'enableClientValidation' => true,
		'clientOptions' => array(
			'validateOnSubmit' => true,
		),
	));
	?>
	<div style="display: none">
		<?php echo $form->error($model, 'userName'); ?>
		<?php echo $form->error($model, 'userPhone'); ?>
		<?php echo $form->error($model, 'userFamily'); ?>
		<?php echo $form->error($model, 'userEmail'); ?>
		<?php echo $form->error($model, 'vacancyUrl'); ?>
	</div>
	<?php echo $form->error($model, 'resume'); ?>
	<fieldset>
		<div class="wrap-bg">
			<ul>
				<li>
					<div class="type-text">
						<?php echo $form->textField($model, 'userName', array('placeholder' => 'Ваше имя')); ?>								
					</div>
				</li>
				<li>    
					<div class="type-text">
						<?php echo $form->textField($model, 'userFamily', array('placeholder' => 'Ваше фамилия')); ?>								
					</div>
				</li> 
				<li>    
					<div class="type-text">
						<?php echo $form->textField($model, 'userPhone', array('placeholder' => 'Ваш телефон', 'class' => 'masked-phone')); ?>							
					</div>
				</li> 
				<li>    
					<div class="type-text">
						<?php echo $form->textField($model, 'userEmail', array('placeholder' => 'Ваш email')); ?>							
					</div>
				</li>    
			</ul>        
		</div>
	</fieldset>
	<fieldset>
		<div class="global-form__summary">
			<label for="link">Ссылка на Ваше резюме</label>
			<div class="type-text">
				<?php echo $form->textField($model, 'vacancyUrl', array('placeholder' => 'http://', 'id' => 'link')); ?>					
			</div>
		</div>
		<span class="global-form__summary__or">
			<span>или</span>
		</span>
		<div class="global-form__attach-summary">
			<div class="global-form__attach-summary__inner">
				<?php echo $form->fileField($model, 'resume'); ?>					
				<span>Прикрепить резюме</span>
			</div>    
		</div>
	</fieldset>
	<fieldset class="last-child">
		<div class="type-submit stretched">
			<?php echo CHtml::submitButton('Отправить'); ?>					
		</div>
	</fieldset>
	<?php $this->endWidget(); ?>
</div>